ip community-list
This command adds a community list entry.
Syntax
ip community-list [vrf <VRF name>] <community list number standard> {permit|deny} [AA:NN] ip community-list <community list number expanded> {permit|deny} line ip community-list expanded name {permit|deny} line ip community-list standard name {permit|deny} [AA:NN] no ip community-list community-option
Command |
Description |
---|---|
VRF name |
Defines the VRF name. |
community list number standard |
Defines community list number standard [1-99] |
community list number expanded |
Defines community list number expanded [100-500] |
expanded |
Adds an expanded community list entry. |
standard |
Adds a standard community list entry. |
name |
Defines a community list name. |
line |
Defines an ordered list as a regular expression. |
permit |
Specifies a community to accept. |
deny |
Specifies a community to reject. |
Default
NA
Command Mode
Privileged User
Example
This example adds a community list entry.
(config data) # ip community-list standard comm1 permit